#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
	int ret = 0;

	ret = system("top -b -n 1 | head -n 2 | grep CPU: > /mnt/ram/test.log");
	sleep(1);
	printf("ret = %d\n", ret);
	while(1) {
		sleep(1);
	}
	return 0;
}
